package com.hee.erp.modules.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.hee.erp.config.ListNotEmptyFilter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author weizehong
 * @since 2022-03-04
 */
@Getter
@Setter
@TableName("t_sys_right")
@ApiModel(value = "SysRight对象", description = "")
public class SysRight implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private String id;

    @TableField("show_name")
    private String showName;

    @TableField("show_icon")
    private String showIcon;

    @TableField("route_path")
    private String routePath;

    @TableField("route_name")
    private String routeName;

    @TableField("parent_id")
    private String parentId;

    @TableField(exist = false)
    private String parentName;

    @TableField(exist = false)
    @JsonInclude(value = JsonInclude.Include.CUSTOM,valueFilter = ListNotEmptyFilter.class)
    private List<SysRight> children;

    @TableField("sort_no")
    private Integer sortNo;

    @ApiModelProperty("类型：0（menu）|1（button）")
    @TableField("type")
    private Integer type;

    @TableField(value = "del_flag",fill = FieldFill.INSERT)
    private Boolean delFlag;

    @TableField(value = "create_user",fill = FieldFill.INSERT)
    private String createUser;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "modify_user",fill = FieldFill.INSERT_UPDATE)
    private String modifyUser;

    @TableField(value = "modify_time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime modifyTime;

}
